ARG VERSION 1_36_0
ARG CENTOS_VERSION=centos8.4.2105
FROM docker.io/library/centos:${CENTOS_VERSION}
#基本工具
RUN minorver=8.5.2111 && sed -e "s|^mirrorlist=|#mirrorlist=|g" \
         -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo
# RUN echo "----网络工具----" && \
    # yum install -y curl tcpdump  net-tools wget telnet
RUN \
    # curl -LO https://github.com/mirror/busybox/archive/refs/tags/${VERSION}.tar.gz  && \
    curl -LO https://codeload.github.com/mirror/busybox/tar.gz/refs/tags/${VERSION}.tar.gz && \
    mkdir buxybox && \
    tar -zxvf --strip-components=1 ${VERSION}.tar.gz -C busybox 

# [solve] 
# RUN dnf install -y ncurses-devel ncurses bzip2-devel bzip2 
# dnf install -y glibc.x86_64 glibc-devel.x86_64
# dnf install -y uClibc-devel-0.9.33.2-25.el8.x86_64